MessageBox("Error: The correct version of HelpBuilder has not been installed.||You cannot install %Application% until HelpBuilder version 1.09 or greater has been installed!", "%Caption%", MB_OK, MB_ICONEXCLAMATION)
GOTO :END
// Got HelpBuilder and it's >= version 1.09.001
:CONT1
// Welcome Dialog
:BACK
SET %Message1%="Welcome to the %Application% Installation Program."
SET %Message2%="This program will install the %Application% software in your HelpBuilder directory on your hard disk."
SET %Message3%="(Compuserve ID: 100105,536)||Setup is supplied with the Setup Builder|software and is the copyright of G.Plowman"
DialogBox("Welcome")
IF %ERROR% == IDCANCEL GOTO :EXIT
// Create installation directory
SET %MakeDir% = %InstallPath%
SET %Temp%=Right(%MakeDir%, 1)
IF "%Temp%" != "\" GOTO :DIROK
SET %Temp% = Len(%MakeDir%) - 1
SET %MakeDir% = Left(%MakeDir%, %Temp%)
:DIROK
MkDir(%MakeDir%)
Open("%MakeDir%\INSTALL.TST", 1, WRITE)
IF %ERROR% == TRUE GOTO :DIRERROR
Close(1)
Delete("%MakeDir%\INSTALL.TST")
SET %MakeDir% = ""
SET %Temp% = ""
// Check for space availability
GetDiskSpace(%InstallDrive%)
SET %Space% = %ERROR%
IF %Space% >= 232448 GOTO :GOTSPACE
MessageBox("The %Application% software requires 232448 bytes of disk space and there is only %Space% bytes free on your %InstallDrive% drive.||Do you wish to continue to install the software ?", "%Caption%", MB_YESNO, MB_ICONQUESTION)